package com.campus.campus.controller;

import com.campus.common.dormitories.service.IDormitoriesService;
import com.campus.common.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/campusDormitory")
@Tag(name = "校园宿舍服务")
public class DormitoryController {

    @Autowired
    private IDormitoriesService dormitoryService;

    @PostMapping("/insertDor")
    @Operation(summary = "学生绑定宿舍信息")
    public Result insertDor(@RequestParam String dormId) {
        return dormitoryService.insertDor(dormId);
    }


}
